<%@ page language="java" session="true" %>
<%@ page import="java.util.Hashtable" %>
<%@ page import="java.net.URLEncoder" %>
<%//ResourceBundle oBundle= ResourceBundle.getBundle("iservices");
//String redirectURL=oBundle.getString(request.getServerName());
String sQueryString = request.getQueryString();
String sXri= request.getParameter("xri");

if(sXri!= null) 
{
	sXri = URLEncoder.encode(sXri , "UTF-8");
	sQueryString = "?xri=" + sXri;
}
else sQueryString="";

Hashtable<String,String> list=new Hashtable<String,String>();
list.put("isso.enom.amsoftsystems.com","https://isso.enom.amsoftsystems.com/isso/CheckLoging"+ sQueryString);
list.put("isso.godaddy.amsoftsystems.com","https://isso.godaddy.amsoftsystems.com/isso/CheckLoging"+ sQueryString);
list.put("authn.gbtn.biz","https://authn.gbtn.biz/isso/CheckLoging"+ sQueryString);
list.put("auth.encirca.com","https://auth.encirca.com/isso/CheckLoging"+ sQueryString);

list.put("contact.enom.amsoftsystems.com","http://contact.enom.amsoftsystems.com/icontact/CheckLoging"+ sQueryString);
list.put("contact.godaddy.amsoftsystems.com","http://contact.godaddy.amsoftsystems.com/icontact/CheckLoging"+ sQueryString);
list.put("contact.gbtn.biz","http://contact.gbtn.biz/icontact/CheckLoging"+ sQueryString);
list.put("contact.encirca.com","http://contact.encirca.com/icontact/CheckLoging"+ sQueryString);

list.put("forwarding.enom.amsoftsystems.com","http://forwarding.enom.amsoftsystems.com/ilink/CheckLoging"+ sQueryString);
list.put("forwarding.godaddy.amsoftsystems.com","http://forwarding.godaddy.amsoftsystems.com/ilink/CheckLoging"+ sQueryString);
list.put("link.gbtn.biz","http://link.gbtn.biz/ilink/CheckLoging"+ sQueryString);
list.put("forwarding.encirca.com","http://forwarding.encirca.com/ilink/CheckLoging"+ sQueryString);

list.put("iservices.inames.net","http://iservices.inames.net/iserviceManager/CheckLoging"+ sQueryString);

//list.put("192.168.1.30","https://192.168.1.30:8443/isso/CheckLoging" + sQueryString);
list.put("192.168.1.30","http://192.168.1.30:8080/ilink/CheckLoging" + sQueryString);
//list.put("192.168.1.30","http://192.168.1.30:8080/icontact/CheckLoging" + sQueryString);
String redirectURL=list.get(request.getServerName());
if(redirectURL==null){
        redirectURL="";
}

	response.setHeader("Expires", "-1");
        response.setHeader("Cache-Control", "no-store");
        response.setHeader("Pragma", "no-cache");
        response.setHeader("Content-Type","text/html;charset=UTF-8");
%>

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<meta http-equiv="REFRESH" content="0;url=<%=redirectURL%>">
</+head><body>&nbsp;</body></html>
